<form class="well form-inline margin-top-20" method="post" action="{:url('open')}">
    <foreach name="filters" item="filter">
    <if condition="$filter['type']==='timePeriods'">
        <label for="{$filter.name}">{$filter.title}</label>
        <input class="form-control" style="width: 200px;" type="text" id="{$filter.name}-start" name="filter[{$filter.name}][start]" value="{$filter.value.start|default=''}" placeholder="">
        <input class="form-control" style="width: 200px;" type="text" id="{$filter.name}-end" name="filter[{$filter.name}][end]" value="{$filter.value.end|default=''}" placeholder="">
    <else/>
        <label for="{$filter.name}">{$filter.title}</label>
        <input class="form-control" style="width: 200px;" type="text" id="{$filter.name}" name="filter[{$filter.name}]" value="{$filter.value|default=''}" placeholder="">
    </if>
    </foreach>
    <foreach name="filter_actions" item="link">
        <button class="btn btn-primary" name="action_id" value="{$link.id}">{$link.title}</button>
    </foreach>
    <a class="btn btn-danger" href="{:url('')}">清空</a>
</form>
